Author: J. K. Patel
Date: 04/11/2024

Title: Description of setup details and files contained in the Section 3: Combined analysis.

This dataset contains the combined analysis of the experimental work presented in Section 3 of the main article, culminating in the generation of Figure 5 
(see ../Figures/Figure5.png).

See the main text of the article for details of the experimental setup and data analysis.


Files:

./Analysis/Figure5_Analysis.py
        This analysis script uses the preliminary analysis of the RCF dataset, the TRIM dataset and the SciFi BPM dataset, as well as the raw data and some 
        further analysis to generate Figure 5 of the main article. The calibrated RCF data obtained from the analysis in the '/Section 3 dataset/RCF dataset/' 
        directory, and are added to Figure 5a) with fiber ROI overlaid. The energy deposition analysis in '/Section 3 dataset/TRIM dataset/' based on TRIM 
        simulations are used to calculate the absolute energy deposition in the ROI of the highest throughput scintillating fiber for each of the RCF layers. 
        This is plotted as a function of the Bragg peak energy of each RCF layer, and a proton spectrum based on a TNSA model is fit to the data. This is then 
        used to determine the absolute energy deposited in the layers of scintillating fibers, which is used to generate the SciFi BPM profiles plotted in 
        Figure5c-e). This script was run with Python 3.9.19, and uses python packages: numpy-1.24.3, matplotlib-3.8.0, scipy-1.9.3 and scikit-image-0.19.3.

./Analysis/Figure5_Analysis.ipynb
        This notebook contains the same analysis and figure generation as in './Analysis/Figure5_Analysis.py', but can be run in an interactive manner.